<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="updateCategory.htm" id="form" method="post"
	theme="simple">
	<table class="verdana12blacknormal" width="100%">
		<tbody>
			<tr>
				<td height="40" class="sectionheading bottom-border">
					Location Form
				</td>
			</tr>
			<tr>
				<td>
					<font size="2"><s:a cssClass="verdana11greynormal"
							href="showLocationCategories.htm">Top</s:a> <s:set name="id"
							value="%{categoryId}" /> <s:iterator value="categoryNames">
										-----&gt;
										<s:if test="%{#id == categoryId}">
								<font class="verdana11greynormal"> <s:property
										value="categoryName" /> </font>
							</s:if>

							<s:else>
								<s:a cssClass="verdana11greynormal"
									href="showLocationCategories.htm?categoryId=%{categoryId}">
									<s:property value="categoryName" />
								</s:a>
							</s:else>
						</s:iterator> </font>
				</td>
			</tr>
		</tbody>
	</table>

	<table class="verdana12blacknormal" width="100%">
		<tbody>
			<tr>
				<td>
					<s:actionerror cssClass="Note-red" />
					<s:fielderror cssClass="Note-red"></s:fielderror>
				</td>
			</tr>
			<tr>
				<td colspan="2" width="100%">
					<table>
						<tbody>
							<tr>
								<td>
									<table>
										<s:hidden name="categoryId" value="%{categoryId}" />
										<s:hidden name="mainParentId" value="%{mainParentId}" />
										<tbody>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Type:
												</td>
												<td class="verdana12blacknormal">
													<s:property value="%{type.type}" />

													<s:hidden name="type.id" value="%{type.id}" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Category ID #:
												</td>
												<td class="verdana12blacknormal">
													<s:text name="categoryId" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Parent Category ID #:
												</td>
												<td>
													<s:textfield name="parentCategoryId" theme="simple"
														cssClass="Textfiled-border" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Category Teaser:
												</td>
												<td>
													<s:checkbox name="categoryTeaser" value="%{categoryTeaser}"
														theme="simple" cssClass="Textfiled-border" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Sort Order:
												</td>
												<td>
													<s:textfield name="sortOrder" cssClass="Textfiled-border"
														theme="simple" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Category Name:
												</td>
												<td>
													<s:textfield name="categoryName" size="55"
														cssClass="Textfiled-border" />
												</td>
											</tr>
											<tr>
												<td align="right" class="verdana12blacknormal">
													Description:
												</td>
												<td>
													<s:textarea name="description" value="%{description}" rows="7" cols="50"
														cssClass="Textfiled-border" />
												</td>
											</tr>

											<tr>
												<td colspan="2" align="center">
													<s:submit type="image"
														src="../Admin-Images/save-chagnes-button.gif" />
													<img style="cursor: pointer;"
														onclick="document.getElementById('form').reset();"
														src="../Admin-Images/reset-button.gif" alt="Reset">
												</td>
											</tr>
										</tbody>
									</table>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
</s:form>
